package req

// 登录
type Login struct {
	Phone    string `json:"phone" form:"phone" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
	SendCode string `json:"send_code" form:"send_code" binding:"required"`
}

// 注册
type Register struct {
	Phone    string `json:"phone" form:"phone" binding:"required"`
	SendCode string `json:"send_code" form:"send_code" binding:"required"`
}

// 短信验证
type SendSms struct {
	Phone string `json:"phone" form:"phone" binding:"required"`
}

// 完善信息
// 找回密码
// 用户首页
// 完善信息   binding:"required"
type UserInfo struct {
	Id       uint64  `json:"id" form:"id"`
	NickName string  `json:"nick_name" form:"nick_name" `
	Avatar   string  `json:"avatar" form:"avatar" `
	RelaName string  `json:"rela_name" form:"rela_name" `
	Status   int64   `json:"status" form:"status" `
	Balance  float64 `json:"balance" form:"balance" `
}

// 找回密码
type UserNewPassword struct {
	Phone       string `json:"phone" form:"phone" binding:"required"`
	Password    string `json:"password" form:"password" binding:"required"`
	SendCode    string `json:"send_code" form:"send_code" binding:"required"`
	NewPassword string `json:"new_password" form:"new_password" binding:"required"`
}

// 用户首页
type UserIndex struct {
	Id uint64 `json:"id" form:"id" binding:"required"`
}
